<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: ELFSourceFile.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('apps_2elftosb_2common_2_e_l_f_source_file_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">apps/elftosb/common/ELFSourceFile.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * File:    ELFSourceFile.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * See included license file for license details.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#if !defined(_ELFSourceFile_h_)</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define _ELFSourceFile_h_</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;SourceFile.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;StELFFile.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;smart_ptr.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;DataSource.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;DataTarget.h&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;ELF.h&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceelftosb.html">elftosb</a></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">enum</span> elf_toolset_t</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    kUnknownToolset, </div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    kGHSToolset,     </div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    kGCCToolset,     </div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    kADSToolset,     </div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    kIARToolset,     </div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    kKDSToolset,     </div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    kKeilToolset     </div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;};</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">enum</span> secinfo_clear_t</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">// Default value for the .secinfo action.</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    kSecinfoDefault,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    kSecinfoIgnore,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    kSecinfoROMClear,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    kSecinfoCStartupClear</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;};</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file.html">   52</a></span>&#160;<span class="keyword">class </span><a class="code" href="classelftosb_1_1_e_l_f_source_file.html">ELFSourceFile</a> : <span class="keyword">public</span> <a class="code" href="classelftosb_1_1_source_file.html">SourceFile</a></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a8d2cfcb0e20859c11bb614f97d33491e">ELFSourceFile</a>(<span class="keyword">const</span> std::string &amp;path);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a13487ebed26dc3407a1ed88cc3b02afa">~ELFSourceFile</a>();</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a3c85576fc0de06a78a755e43d77cff45">isELFFile</a>(std::istream &amp;stream);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a4c7b543224830d2f3cb084dc80f28bca">open</a>();</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a5e506a35992cd35cb976af46b051412f">close</a>();</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSections()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSymbols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_data_source.html">DataSource</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">createDataSource</a>();</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_data_source.html">DataSource</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">createDataSource</a>(<a class="code" href="classelftosb_1_1_string_matcher.html">StringMatcher</a> &amp;matcher);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#aca87a9dce73b0e08858673bd144c0388">hasEntryPoint</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a4b376cf817a8d615fc763c331f543184">getEntryPointAddress</a>();</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_data_target.html">DataTarget</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file.html#ac993663910459963f652a9f161a74594">createDataTargetForSection</a>(<span class="keyword">const</span> std::string &amp;section);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_data_target.html">DataTarget</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file.html#aec582e3a55edc5a9f1eeb6217a190348">createDataTargetForSymbol</a>(<span class="keyword">const</span> std::string &amp;symbol);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a2e132d139857a70b65246b57183a9269">hasSymbol</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a6eebc19e0cb61d9dcb51f30f7d95f22f">getSymbolValue</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#ae37ed715d8d53960a748bc73d63081b2">getSymbolSize</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a4afd0fc058a41bfa790ba826df9e0220">getELFFile</a>() { <span class="keywordflow">return</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#ab46eeb515e427a090ba7bb3137477c6d">m_file</a>; }</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#ae1d5eb50d5b22775659d67e1bf5575b6">lookupSymbol</a>(<span class="keyword">const</span> std::string &amp;name, <a class="code" href="struct_elf32___sym.html">Elf32_Sym</a> &amp;info);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file.html#ab46eeb515e427a090ba7bb3137477c6d">  124</a></span>&#160;    <a class="code" href="group__smart__pointer.html">smart_ptr&lt;StELFFile&gt;</a> <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#ab46eeb515e427a090ba7bb3137477c6d">m_file</a>;     </div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file.html#a9e987b259b9171aa792ee5d1cc9bec80">  125</a></span>&#160;    elf_toolset_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a9e987b259b9171aa792ee5d1cc9bec80">m_toolset</a>;         </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file.html#afd26f00dbb24f3ed7354f5cd72f6e8af">  126</a></span>&#160;    secinfo_clear_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#afd26f00dbb24f3ed7354f5cd72f6e8af">m_secinfoOption</a>; </div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    elf_toolset_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a9833b113021cae9d480ebf4a6211323f">readToolsetOption</a>();</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    secinfo_clear_t <a class="code" href="classelftosb_1_1_e_l_f_source_file.html#a74c60216d716cfcfb9224fbad9f2c990">readSecinfoClearOption</a>();</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">  151</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> : <span class="keyword">public</span> <a class="code" href="classelftosb_1_1_data_source.html">DataSource</a></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    {</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">  157</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">ProgBitsSegment</a> : <span class="keyword">public</span> <a class="code" href="classelftosb_1_1_data_source_1_1_segment.html">DataSource::Segment</a></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        {</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">ProgBitsSegment</a>(<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> &amp;source, <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#ab0c90050602a06674ec013d937dbe446">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">getLength</a>();</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aae28b0de6b9f75504c647b9a11323d15">  165</a></span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aae28b0de6b9f75504c647b9a11323d15">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <span class="keyword">virtual</span> uint32_t <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">getBaseAddress</a>();</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aab051a4eaadbe5bfa312692b03954c32">  169</a></span>&#160;            <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aab051a4eaadbe5bfa312692b03954c32">m_elf</a>;        </div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a6d026fd60ff664c2397cb68e3d42f595">  170</a></span>&#160;            <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a6d026fd60ff664c2397cb68e3d42f595">m_sectionIndex</a>; </div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        };</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">  179</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">NoBitsSegment</a> : <span class="keyword">public</span> <a class="code" href="classelftosb_1_1_data_source_1_1_pattern_segment.html">DataSource::PatternSegment</a></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        {</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">NoBitsSegment</a>(<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> &amp;source, <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">getLength</a>();</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#aeba8086102de82baa2f1af736d6b9af9">  186</a></span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#aeba8086102de82baa2f1af736d6b9af9">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="keyword">virtual</span> uint32_t <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">getBaseAddress</a>();</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a7d02bac5cee6ca87132eb8b15f69d0b2">  190</a></span>&#160;            <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a7d02bac5cee6ca87132eb8b15f69d0b2">m_elf</a>;        </div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#abedf9c68d0d276dc8e893f49d6152082">  191</a></span>&#160;            <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#abedf9c68d0d276dc8e893f49d6152082">m_sectionIndex</a>; </div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        };</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a81113f1ded9bf98ed0417230ed2689e2">  196</a></span>&#160;        <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a81113f1ded9bf98ed0417230ed2689e2">ELFDataSource</a>(<a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf)</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;            : <a class="code" href="classelftosb_1_1_data_source.html">DataSource</a>()</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            , <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aab051a4eaadbe5bfa312692b03954c32">m_elf</a>(elf)</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        {</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        }</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a516924dd7eb8a08dced8ff2c87bb754d">~ELFDataSource</a>();</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a62c88ac2b32b699416b888bbe4699d73">  206</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a62c88ac2b32b699416b888bbe4699d73">setSecinfoOption</a>(secinfo_clear_t option) { m_secinfoOption = option; }</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac6874a986382fab432109f173cc34f61">addSection</a>(<span class="keywordtype">unsigned</span> sectionIndex);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a857a96468b2b7d3b8ae4b981d652b6a9">  211</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a857a96468b2b7d3b8ae4b981d652b6a9">getSegmentCount</a>() { <span class="keywordflow">return</span> (<span class="keywordtype">unsigned</span>)<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aaad53729583910fd96fbed244efcafeb">m_segments</a>.size(); }</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a45fb8f6b8cb4f4b095de0474cbbc2afa">  213</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_data_source_1_1_segment.html">DataSource::Segment</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a45fb8f6b8cb4f4b095de0474cbbc2afa">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index) { <span class="keywordflow">return</span> <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aaad53729583910fd96fbed244efcafeb">m_segments</a>[index]; }</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac014d84b55eb9b52d7c687236e088542">  215</a></span>&#160;        <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac014d84b55eb9b52d7c687236e088542">m_elf</a>;                </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a8ea9ea37010c746cf15a5a5b3913ba4a">  216</a></span>&#160;        secinfo_clear_t <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a8ea9ea37010c746cf15a5a5b3913ba4a">m_secinfoOption</a>; </div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a28613093a1cb0cfbd4cd19d96553992f">  218</a></span>&#160;        <span class="keyword">typedef</span> std::vector&lt;DataSource::Segment *&gt; <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a28613093a1cb0cfbd4cd19d96553992f">segment_vector_t</a>; </div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aaad53729583910fd96fbed244efcafeb">  219</a></span>&#160;        segment_vector_t <a class="code" href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aaad53729583910fd96fbed244efcafeb">m_segments</a>;                                 </div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    };</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;};</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;}; <span class="comment">// namespace elftosb</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#endif // _ELFSourceFile_h_</span></div><div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_ab46eeb515e427a090ba7bb3137477c6d"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#ab46eeb515e427a090ba7bb3137477c6d">elftosb::ELFSourceFile::m_file</a></div><div class="ttdeci">smart_ptr&lt; StELFFile &gt; m_file</div><div class="ttdoc">Parser for the ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:124</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">elftosb::ELFSourceFile::ELFDataSource::NoBitsSegment</a></div><div class="ttdoc">Represents one named #SHT_NOBITS section within the ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:179</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a6d026fd60ff664c2397cb68e3d42f595"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a6d026fd60ff664c2397cb68e3d42f595">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::m_sectionIndex</a></div><div class="ttdeci">unsigned m_sectionIndex</div><div class="ttdoc">The index of the section this segment represents. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:170</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a4afd0fc058a41bfa790ba826df9e0220"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a4afd0fc058a41bfa790ba826df9e0220">elftosb::ELFSourceFile::getELFFile</a></div><div class="ttdeci">StELFFile * getELFFile()</div><div class="ttdoc">Returns the underlying StELFFile object. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:118</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a8fb913927c47f0b1e3f61467616b39a5"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::getLength</a></div><div class="ttdeci">virtual unsigned getLength()</div><div class="ttdoc">Gets the length of the segment&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:517</div></div>
<div class="ttc" id="classelftosb_1_1_data_source_html"><div class="ttname"><a href="classelftosb_1_1_data_source.html">elftosb::DataSource</a></div><div class="ttdoc">Abstract base class for data sources. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/DataSource.h:33</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a9833b113021cae9d480ebf4a6211323f"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a9833b113021cae9d480ebf4a6211323f">elftosb::ELFSourceFile::readToolsetOption</a></div><div class="ttdeci">elf_toolset_t readToolsetOption()</div><div class="ttdoc">Parses the toolset option value. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:103</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a4d16cefc2d6756bf4e037e87c8f6b2a7"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">elftosb::ELFSourceFile::createDataSource</a></div><div class="ttdeci">virtual DataSource * createDataSource()</div><div class="ttdoc">Creates a data source from the entire file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:202</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a2e132d139857a70b65246b57183a9269"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a2e132d139857a70b65246b57183a9269">elftosb::ELFSourceFile::hasSymbol</a></div><div class="ttdeci">virtual bool hasSymbol(const std::string &amp;name)</div><div class="ttdoc">Returns whether a symbol exists in the source file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:335</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_ac993663910459963f652a9f161a74594"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#ac993663910459963f652a9f161a74594">elftosb::ELFSourceFile::createDataTargetForSection</a></div><div class="ttdeci">virtual DataTarget * createDataTargetForSection(const std::string &amp;section)</div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:291</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a8d2cfcb0e20859c11bb614f97d33491e"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a8d2cfcb0e20859c11bb614f97d33491e">elftosb::ELFSourceFile::ELFSourceFile</a></div><div class="ttdeci">ELFSourceFile(const std::string &amp;path)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:34</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_aaad53729583910fd96fbed244efcafeb"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aaad53729583910fd96fbed244efcafeb">elftosb::ELFSourceFile::ELFDataSource::m_segments</a></div><div class="ttdeci">segment_vector_t m_segments</div><div class="ttdoc">The segments of this data source. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:219</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a28613093a1cb0cfbd4cd19d96553992f"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a28613093a1cb0cfbd4cd19d96553992f">elftosb::ELFSourceFile::ELFDataSource::segment_vector_t</a></div><div class="ttdeci">std::vector&lt; DataSource::Segment * &gt; segment_vector_t</div><div class="ttdoc">A list of segment instances. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:218</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a81113f1ded9bf98ed0417230ed2689e2"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a81113f1ded9bf98ed0417230ed2689e2">elftosb::ELFSourceFile::ELFDataSource::ELFDataSource</a></div><div class="ttdeci">ELFDataSource(StELFFile *elf)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:196</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_ac014d84b55eb9b52d7c687236e088542"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac014d84b55eb9b52d7c687236e088542">elftosb::ELFSourceFile::ELFDataSource::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The ELF file parser. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:215</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_aec582e3a55edc5a9f1eeb6217a190348"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#aec582e3a55edc5a9f1eeb6217a190348">elftosb::ELFSourceFile::createDataTargetForSymbol</a></div><div class="ttdeci">virtual DataTarget * createDataTargetForSymbol(const std::string &amp;symbol)</div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:309</div></div>
<div class="ttc" id="group__smart__pointer_html"><div class="ttname"><a href="group__smart__pointer.html">smart_ptr&lt; StELFFile &gt;</a></div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_afd26f00dbb24f3ed7354f5cd72f6e8af"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#afd26f00dbb24f3ed7354f5cd72f6e8af">elftosb::ELFSourceFile::m_secinfoOption</a></div><div class="ttdeci">secinfo_clear_t m_secinfoOption</div><div class="ttdoc">How to deal with the .secinfo section. Ignored if the toolset is not GHS. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:126</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_aca87a9dce73b0e08858673bd144c0388"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#aca87a9dce73b0e08858673bd144c0388">elftosb::ELFSourceFile::hasEntryPoint</a></div><div class="ttdeci">virtual bool hasEntryPoint()</div><div class="ttdoc">Returns true if an entry point was set in the file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:251</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_afc62b0e542f31488d24b4baa8555c914"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::getBaseAddress</a></div><div class="ttdeci">virtual uint32_t getBaseAddress()</div><div class="ttdoc">Returns the address associated with the segment. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:523</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a74c60216d716cfcfb9224fbad9f2c990"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a74c60216d716cfcfb9224fbad9f2c990">elftosb::ELFSourceFile::readSecinfoClearOption</a></div><div class="ttdeci">secinfo_clear_t readSecinfoClearOption()</div><div class="ttdoc">Reads the secinfoClear option. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:151</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_ae37ed715d8d53960a748bc73d63081b2"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#ae37ed715d8d53960a748bc73d63081b2">elftosb::ELFSourceFile::getSymbolSize</a></div><div class="ttdeci">virtual unsigned getSymbolSize(const std::string &amp;name)</div><div class="ttdoc">Returns the size of a symbol. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:370</div></div>
<div class="ttc" id="struct_elf32___sym_html"><div class="ttname"><a href="struct_elf32___sym.html">Elf32_Sym</a></div><div class="ttdoc">ELF symbol table entry. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:277</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a4b376cf817a8d615fc763c331f543184"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a4b376cf817a8d615fc763c331f543184">elftosb::ELFSourceFile::getEntryPointAddress</a></div><div class="ttdeci">virtual uint32_t getEntryPointAddress()</div><div class="ttdoc">Returns the entry point address. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:258</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_ae1d5eb50d5b22775659d67e1bf5575b6"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#ae1d5eb50d5b22775659d67e1bf5575b6">elftosb::ELFSourceFile::lookupSymbol</a></div><div class="ttdeci">bool lookupSymbol(const std::string &amp;name, Elf32_Sym &amp;info)</div><div class="ttdoc">Gets information about a symbol in the ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:386</div></div>
<div class="ttc" id="namespaceelftosb_html"><div class="ttname"><a href="namespaceelftosb.html">elftosb</a></div><div class="ttdef"><b>Definition:</b> BootImage.h:13</div></div>
<div class="ttc" id="classelftosb_1_1_source_file_html"><div class="ttname"><a href="classelftosb_1_1_source_file.html">elftosb::SourceFile</a></div><div class="ttdoc">Abstract base class for a source file containing executable code. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/SourceFile.h:33</div></div>
<div class="ttc" id="classelftosb_1_1_data_target_html"><div class="ttname"><a href="classelftosb_1_1_data_target.html">elftosb::DataTarget</a></div><div class="ttdoc">Abstract base class for the target address or range of data. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/DataTarget.h:34</div></div>
<div class="ttc" id="classelftosb_1_1_data_source_1_1_pattern_segment_html"><div class="ttname"><a href="classelftosb_1_1_data_source_1_1_pattern_segment.html">elftosb::DataSource::PatternSegment</a></div><div class="ttdoc">This is a special type of segment containing a repeating pattern. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/DataSource.h:87</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment</a></div><div class="ttdoc">Represents one named #SHT_PROGBITS section within the ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:157</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a516924dd7eb8a08dced8ff2c87bb754d"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a516924dd7eb8a08dced8ff2c87bb754d">elftosb::ELFSourceFile::ELFDataSource::~ELFDataSource</a></div><div class="ttdeci">virtual ~ELFDataSource()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:409</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a857a96468b2b7d3b8ae4b981d652b6a9"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a857a96468b2b7d3b8ae4b981d652b6a9">elftosb::ELFSourceFile::ELFDataSource::getSegmentCount</a></div><div class="ttdeci">virtual unsigned getSegmentCount()</div><div class="ttdoc">Returns the number of segments in the source. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:211</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">elftosb::ELFSourceFile::ELFDataSource</a></div><div class="ttdoc">A data source with ELF file sections as the contents. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:151</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_ac6874a986382fab432109f173cc34f61"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac6874a986382fab432109f173cc34f61">elftosb::ELFSourceFile::ELFDataSource::addSection</a></div><div class="ttdeci">void addSection(unsigned sectionIndex)</div><div class="ttdoc">Adds the ELF section at position sectionIndex to the data source. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:428</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a3c85576fc0de06a78a755e43d77cff45"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a3c85576fc0de06a78a755e43d77cff45">elftosb::ELFSourceFile::isELFFile</a></div><div class="ttdeci">static bool isELFFile(std::istream &amp;stream)</div><div class="ttdoc">Identifies whether the stream contains an ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:45</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a9e987b259b9171aa792ee5d1cc9bec80"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a9e987b259b9171aa792ee5d1cc9bec80">elftosb::ELFSourceFile::m_toolset</a></div><div class="ttdeci">elf_toolset_t m_toolset</div><div class="ttdoc">Toolset that produced the ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:125</div></div>
<div class="ttc" id="classelftosb_1_1_data_source_1_1_segment_html"><div class="ttname"><a href="classelftosb_1_1_data_source_1_1_segment.html">elftosb::DataSource::Segment</a></div><div class="ttdoc">Discrete, contiguous part of the source&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/DataSource.h:42</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_abedf9c68d0d276dc8e893f49d6152082"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#abedf9c68d0d276dc8e893f49d6152082">elftosb::ELFSourceFile::ELFDataSource::NoBitsSegment::m_sectionIndex</a></div><div class="ttdeci">unsigned m_sectionIndex</div><div class="ttdoc">The index of the section this segment represents. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:191</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a13487ebed26dc3407a1ed88cc3b02afa"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a13487ebed26dc3407a1ed88cc3b02afa">elftosb::ELFSourceFile::~ELFSourceFile</a></div><div class="ttdeci">virtual ~ELFSourceFile()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:41</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_a7d02bac5cee6ca87132eb8b15f69d0b2"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a7d02bac5cee6ca87132eb8b15f69d0b2">elftosb::ELFSourceFile::ELFDataSource::NoBitsSegment::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The format parser instance for this ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:190</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_aae28b0de6b9f75504c647b9a11323d15"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aae28b0de6b9f75504c647b9a11323d15">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Returns whether the segment has an associated address. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:165</div></div>
<div class="ttc" id="class_st_e_l_f_file_html"><div class="ttname"><a href="class_st_e_l_f_file.html">StELFFile</a></div><div class="ttdoc">Parser for Executable and Linking Format (ELF) files. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/StELFFile.h:42</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html">elftosb::ELFSourceFile</a></div><div class="ttdoc">Executable and Loading Format (ELF) source file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:52</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a6eebc19e0cb61d9dcb51f30f7d95f22f"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a6eebc19e0cb61d9dcb51f30f7d95f22f">elftosb::ELFSourceFile::getSymbolValue</a></div><div class="ttdeci">virtual uint32_t getSymbolValue(const std::string &amp;name)</div><div class="ttdoc">Returns the value of a symbol. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:341</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_ab0c90050602a06674ec013d937dbe446"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#ab0c90050602a06674ec013d937dbe446">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::getData</a></div><div class="ttdeci">virtual unsigned getData(unsigned offset, unsigned maxBytes, uint8_t *buffer)</div><div class="ttdoc">Gets all or a portion of the segment&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:501</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_aab051a4eaadbe5bfa312692b03954c32"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#aab051a4eaadbe5bfa312692b03954c32">elftosb::ELFSourceFile::ELFDataSource::ProgBitsSegment::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The format parser instance for this ELF file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:169</div></div>
<div class="ttc" id="classelftosb_1_1_string_matcher_html"><div class="ttname"><a href="classelftosb_1_1_string_matcher.html">elftosb::StringMatcher</a></div><div class="ttdoc">Abstract interface class used to select strings by name. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/StringMatcher.h:17</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a62c88ac2b32b699416b888bbe4699d73"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a62c88ac2b32b699416b888bbe4699d73">elftosb::ELFSourceFile::ELFDataSource::setSecinfoOption</a></div><div class="ttdeci">void setSecinfoOption(secinfo_clear_t option)</div><div class="ttdoc">Set the option to control .secinfo usage. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:206</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a45fb8f6b8cb4f4b095de0474cbbc2afa"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a45fb8f6b8cb4f4b095de0474cbbc2afa">elftosb::ELFSourceFile::ELFDataSource::getSegmentAt</a></div><div class="ttdeci">virtual DataSource::Segment * getSegmentAt(unsigned index)</div><div class="ttdoc">Returns the segment at position index. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:213</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a8ea9ea37010c746cf15a5a5b3913ba4a"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a8ea9ea37010c746cf15a5a5b3913ba4a">elftosb::ELFSourceFile::ELFDataSource::m_secinfoOption</a></div><div class="ttdeci">secinfo_clear_t m_secinfoOption</div><div class="ttdoc">How to deal with the .secinfo section. Ignored if the toolset is not GHS. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:216</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_aeba8086102de82baa2f1af736d6b9af9"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#aeba8086102de82baa2f1af736d6b9af9">elftosb::ELFSourceFile::ELFDataSource::NoBitsSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Pattern segments have no natural address. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.h:186</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a5e506a35992cd35cb976af46b051412f"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a5e506a35992cd35cb976af46b051412f">elftosb::ELFSourceFile::close</a></div><div class="ttdeci">virtual void close()</div><div class="ttdoc">Closes the file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:96</div></div>
<div class="ttc" id="classelftosb_1_1_e_l_f_source_file_html_a4c7b543224830d2f3cb084dc80f28bca"><div class="ttname"><a href="classelftosb_1_1_e_l_f_source_file.html#a4c7b543224830d2f3cb084dc80f28bca">elftosb::ELFSourceFile::open</a></div><div class="ttdeci">virtual void open()</div><div class="ttdoc">Opens the file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELFSourceFile.cpp:58</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_96c2f84c885cff71a930b6845f88cdd3.html">elftosb</a></li><li class="navelem"><a class="el" href="dir_c476059e18722267e10e2fb2cca6f785.html">common</a></li><li class="navelem"><b>ELFSourceFile.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
